#!/usr/bin/expect
#获取用户密码
set passwd [lindex $argv 0]

# 设置escryptfs挂载
spawn ecryptfs-mount-private ~/.Private ~/Private
expect {
    "Enter your login passphrase*" {send "$passwd\r";exp_continue;}
}
#expect eof
